package com.breakfast.fun.ui.user.recharge.rechargemoney;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.user.User;
import com.breakfast.fun.data.entity.user.recharge.CmbPay;
import com.breakfast.fun.data.entity.user.recharge.RechargeMoney;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by Administrator on 2016/8/24.
 */
public interface RechargeMoneyContract {
    interface Model extends BaseModel {
        Observable<RechargeMoney> getRechargeMoneyModel(@FieldMap Map<String, String> map);

        Observable<User> getUserModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void showPayWay(RechargeMoney rechargeMoney);

        void refresh(User user);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void next(String price);

        public abstract void getUser();
    }
}
